<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="./lib/mui/css/mui.css">
    <link rel="stylesheet" href="./lib/fontawesome/css/font-awesome.css">
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/index.css">
    <title>Document</title>
</head>

<body class="loadding">
    <header class="pyg_head">
        <div class="mui-input-row mui-search">
            <input type="search" class="mui-input-clear" placeholder="">
        </div>
    </header>
    <div class="pyg_content">
        <!-- 轮播图 -->
        <div class="pyg_banner">

        </div>
        <!-- 分类 -->
        <div class="pyg_cates">
            <a href="javascript:;">
                <img src="" alt="">
            </a>
        </div>
        <!-- 产品 -->
        <div class="pyg_product">
        </div>
    </div>
    <footer class="pyg_footer">
        <a href="javascript:;">
            <div class="fa fa-home"></div>
            <div>首页</div>
        </a>
        <a href="./pages/category.html">
            <div class="fa fa fa-list-ul"></div>
            <div>分类</div>
        </a>
        <a href="javascript:;">
            <div class="fa fa-cart-arrow-down "></div>
            <div>购物车</div>
        </a>
        <a href="javascript:;">
            <div class="fa fa-user-circle"></div>
            <div>我的</div>
        </a>
    </footer>
</body>
<!-- 模板引擎 -->
<!-- 轮播图 -->
<script type="text/template" id="slideTemp">
    <div class="mui-slider">
        <div class="mui-slider-group mui-slider-loop">
          <!--支持循环，需要重复图片节点-->
          <div class="mui-slider-item mui-slider-item-duplicate"><a href="#"><img src="{{data[data.length-1].image_src}}" /></a></div>
          {{each data value index}}
          <div class="mui-slider-item"><a href="#"><img src="{{value.image_src}}" /></a></div>
          {{/each}}
          <!--支持循环，需要重复图片节点-->
          <div class="mui-slider-item mui-slider-item-duplicate"><a href="#"><img src="{{data[0].image_src}}" /></a></div>
        </div>
        <div class="mui-slider-indicator">
            {{each data value index}}
            {{if index==0}}
            <div class="mui-indicator mui-active"></div>
            {{/if}}
            {{if index!=0}}
            <div class="mui-indicator"></div>
            {{/if}}
            {{/each}}
        </div>
    </div>
</script>

<!-- 首页分类 -->
<script type="text/template" id="catesTemp">
    {{each data value index}}
    <a href="javascript:;">
            <img src="{{value.image_src}}" alt="">
    </a>
    {{/each}}
</script>

<!-- 商品信息 -->
<script type="text/template" id="goodsTemp">
    {{each data value1 index1}}
      <!-- 大图 -->
      <img src="{{value1.group_img}}" alt="">
      <!-- 商品信息  -->
      <div class="pyg_items">
          <ul>
              {{each value1.goods value2 index2}}
              <li>
                  <a href="javascript:;" class="goods">
                      <img src="{{value2.goods_small_logo}}"
                          alt="">
                      <div class="goods_name">{{value2.goods_name}}</div>
                      <div class="goods_price">&yen;{{value2.goods_price}}</div>
                  </a>
                  <a href="javascript:;" class="goods_likes mui-btn mui-btn-primary mui-btn-outlined">
                      找相似
                  </a>
              </li>
              {{/each}}
          </ul>
      </div>
      {{/each}}
</script>
<script src="./lib/mui/js/mui.js"></script>
<script src="./lib/zepto/zepto.js"></script>
<script src="./lib/arttemplate/template-web.js"></script>
<script src="./js/common.js"></script>
<script src="./js/index.js"></script>

</html>